<script setup>
// import Tabbar from '@/components/Tabbar.vue'
import { useRouter } from 'vue-router'
import { onMounted } from 'vue';
import { useState } from '@/hooks/useState'
const router = useRouter()
// import axios from 'axios';

const props = defineProps({
  share_id: String,
  id: String,
  title: String,
  src: String
})
const { state } = useState()

function onClickLeft() {
  router.back()
}

onMounted(() => {
  // buy()
  // getList()
})
</script>

<template>
  <!-- <van-nav-bar
    :title="state.config?.website || '在线商城'"
    left-text="返回"
    left-arrow
    @click-left="onClickLeft"
  /> -->
  <iframe :src="props.src" style="border-width: 0px;width: 100vw;height: 92vh;overflow:visible;">
  </iframe>
  <Tabbar :activeMenu="+props.activeMenu"/>
</template>

<style scoped lang="less">
</style>
